﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics.Contracts;
using System.Linq;

using ProjectBase.Core;
using ProjectBase.Core.Dao;

namespace $safeprojectname$.Db
{
    public class DbSessionHandler : IDbSessionHandler
    {
        public virtual bool TransactionIsActive
        {
            get { return DbSession.TransactionIsActive; }
        }
        public virtual void TransactionBegin()
        {
            DbSession.TransactionBegin();
        }
        public virtual void TransactionCommit()
        {
            DbSession.TransactionCommit();
        }
        public virtual void TransactionRollback()
        {
            DbSession.TransactionRollback();
        }

        public virtual void Initialize(IDbRequestSession storage)
        {
            DbSession.Initialize(storage);
        }
        public virtual void Dispose()
        {
            DbSession.Dispose();
        }
    }
}